﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ane.JobApps.Models.JobApplication>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Add
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<% var user = ((ane.JobApps.Models.Profile)ViewData["User"]); %>

    <h2>Add Job Application</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
            
            <%--<div class="editor-label">
                <%: Html.LabelFor(model => model.JobApplicationID) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.JobApplicationID) %>
                <%: Html.ValidationMessageFor(model => model.JobApplicationID) %>
            </div>--%>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ProfileID) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ProfileID, new {@Value=user.ProfileID })%>
                <%: Html.ValidationMessageFor(model => model.ProfileID) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.JobDescriptionID) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.JobDescriptionID) %>
                <%: Html.ValidationMessageFor(model => model.JobDescriptionID) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ApplicationDate) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ApplicationDate) %>
                <%: Html.ValidationMessageFor(model => model.ApplicationDate) %>
            </div>
            
            <div class="editor-label">
                <%: Html.Label("Is responsed?") %>
            </div>
            <div class="editor-field">
                <%: Html.RadioButtonFor(model => model.Responsed, "Yes")%>Yes
                <%: Html.RadioButtonFor(model => model.Responsed, "No")%>No
                <%: Html.ValidationMessageFor(model => model.Responsed) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ResponseDate) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ResponseDate) %>
                <%: Html.ValidationMessageFor(model => model.ResponseDate) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ResponseComment) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ResponseComment) %>
                <%: Html.ValidationMessageFor(model => model.ResponseComment) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ApplicationMemo) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ApplicationMemo) %>
                <%: Html.ValidationMessageFor(model => model.ApplicationMemo) %>
            </div>
            
            <div  class="editor-label">
                <%: Html.LabelFor(model => model.ApplicantMail) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ApplicantMail) %>
                <%: Html.ValidationMessageFor(model => model.ApplicantMail) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.InformationSouce) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.InformationSouce) %>
                <%: Html.ValidationMessageFor(model => model.InformationSouce) %>
            </div>
            
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>
       
    <% } %>
    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

